import { defineStore } from 'pinia'
import { ref } from 'vue'
import type { UserInfo } from '@/api/modules/system/type'

export const useUserStore = defineStore('user', () => {
    const token = ref('')
    const userInfo = ref<UserInfo>()

    const loginEffect = () => {}

    const logoutEffect = () => {}

    return {
        token,
        userInfo,
        loginEffect,
        logoutEffect,
    }
})
